package com.zhangmeng.online.exam.controller;

import com.zhangmeng.jwt.factory.VerificationCodeFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
 * @author zm
 * @date 2025/3/22 15:56
 * @version: 1.0
 */
@RestController
@RequestMapping("/verificationCode")
public class VerificationCodeController {

    @RequestMapping("/generate")
    public void generate(HttpServletRequest request, HttpServletResponse response) throws Exception {
        VerificationCodeFactory.getSpecCaptcha().out(response.getOutputStream());
    }

}
